﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace Emz.Core.Models
{
    public class Role : EntityBase<int>
    {
        [Required]
        [StringLength(100)]
        public string RoleName { get; set; }


        //many to many relation to User
        public virtual ICollection<User> Users { get; set; }
        public Role()
        {
            Users = new HashSet<User>();
        }
    }
}
